package com.tianhui.consignortwofei.mvp.model.hetong;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2021/5/20
 * @description
 **/
public class ProductInfo implements Parcelable {

    public String contractno;
    public String createBy;
    public String createTime;
    public String factory;
    public String id;
    public String modifyBy;
    public String modifyTime;
    public String name;
    public String number;
    public String price;
    public String remark;
    public String sales;
    public String total;
    public String type;
    public String unit;
    public String vat;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.contractno);
        dest.writeString(this.createBy);
        dest.writeString(this.createTime);
        dest.writeString(this.factory);
        dest.writeString(this.id);
        dest.writeString(this.modifyBy);
        dest.writeString(this.modifyTime);
        dest.writeString(this.name);
        dest.writeString(this.number);
        dest.writeString(this.price);
        dest.writeString(this.remark);
        dest.writeString(this.sales);
        dest.writeString(this.total);
        dest.writeString(this.type);
        dest.writeString(this.unit);
        dest.writeString(this.vat);
    }

    public ProductInfo() {
    }

    protected ProductInfo(Parcel in) {
        this.contractno = in.readString();
        this.createBy = in.readString();
        this.createTime = in.readString();
        this.factory = in.readString();
        this.id = in.readString();
        this.modifyBy = in.readString();
        this.modifyTime = in.readString();
        this.name = in.readString();
        this.number = in.readString();
        this.price = in.readString();
        this.remark = in.readString();
        this.sales = in.readString();
        this.total = in.readString();
        this.type = in.readString();
        this.unit = in.readString();
        this.vat = in.readString();
    }

    public static final Creator<ProductInfo> CREATOR = new Creator<ProductInfo>() {
        @Override
        public ProductInfo createFromParcel(Parcel source) {
            return new ProductInfo(source);
        }

        @Override
        public ProductInfo[] newArray(int size) {
            return new ProductInfo[size];
        }
    };
}
